package com.mrzhou.user.prop;

import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author qiang.zhou
 */
@Getter
@Setter
@RefreshScope
@Component
@ConfigurationProperties(prefix = "user.config")
public class UserProperties {

    private String username;

    private String password;

    @Override
    public String toString() {
        return "UserProperties{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
